<template>
  <div>
    <el-table :data="addressData" style="width: 100%">
      <el-table-column prop="province" label="省份" width="180"> </el-table-column>
      <el-table-column prop="city" label="城市" width="180"> </el-table-column>
      <el-table-column prop="area" label="区域"> </el-table-column>
      <el-table-column prop="telephone" label="电话"> </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { mapActions, mapState } from "vuex";
export default {
  data() {
    return {
      id: this.$route.params.id,
    };
  },
  computed: {
    ...mapState("customer", ["addressData"]),
  },
  methods: {
    ...mapActions("customer", ["findAddressByCId"]),
  },
  created() {
    this.findAddressByCId({ id: this.id });
  },
  mounted() {},
};
</script>
<style>
</style>